<?php
	$form = new EventoForm();
?>
<h1 class="heading">Visualizar Evento</h1>

<table class="form">
  <tbody>
  <tr><th colspan="2" class="title">Detalhes Evento</th></tr>
    <tr>
      <th><?php echo $form['id_evento']->renderLabel() ?>:</th>
      <td><?php echo $evento->getIdEvento() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['nm_evento']->renderLabel() ?>:</th>
      <td><?php echo $evento->getNmEvento() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_evento']->renderLabel() ?>:</th>
      <td><?php echo $evento->getDsEvento() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_resumo']->renderLabel() ?>:</th>
      <td><?php echo $evento->getDsResumo() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['st_evento']->renderLabel() ?>:</th>
      <td><?php echo $evento->getStEvento() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['dt_evento']->renderLabel() ?>:</th>
      <td><?php echo $evento->getDtEvento() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['id_usuario']->renderLabel() ?>:</th>
      <td><?php echo $evento->getIdUsuario() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['created_at']->renderLabel() ?>:</th>
      <td><?php echo $evento->getCreatedAt() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['updated_at']->renderLabel() ?>:</th>
      <td><?php echo $evento->getUpdatedAt() ?></td>
    </tr>
  </tbody>
</table>

<hr />

<?php
	comandos_form(
		link_to(
			':: Listar ::',
			'evento/list',
			array('class' => 'botao')
		),
		link_to(
			':: Editar ::',
			'evento/edit?id_evento='.$evento->getIdEvento(),
			array('class' => 'botao')
		)
	);
?>